# coding: utf-8
from . import db, BaseModel


class Lesson(db.Model):
    __tablename__ = 'lesson'

    auto_id = db.Column(db.Integer, primary_key=True)
    lesson_id = db.Column(db.Integer, index=True, info='班级编号')
    lesson_name = db.Column(db.String(255, 'utf8mb3_general_ci'), info='班级名称')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue())
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue())
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue())
